<script type="text/javascript">
$(document).ready(function(){
	$("#pager_plugin").mainPager({
		pager: "#pager_plugin",
		url: '/admin/plugin/ajax.pager.plugin<?php echo Main_Const::getSeriveUrlStr(); ?>',
		urlEdit: '/admin/plugin/plugin.edit<?php echo Main_Const::getSeriveUrlStr(); ?>',
		rowList: [2,4,6,8],
		rowNum: 2,
		colNames: {
			id: 'ID',
			name: 'Имя',
			title: 'Название',
			f_active: 'Статус'
		},
		colModel: {
			id: {index: ['id'], width: '12%'},
			name: {index: ['name'], width: '26%'},
			title: {index: ['title'], width: '26%'},
			f_active: {index: ['f_active'], width: '26%', handler: 'pagerIsActiveHandler'}
		},
		emptyList: 'Список пуст',
		actionsWidth: '8%'
	});
});
</script>

<h3 class="action-name">Плагины</h3>
<div class="button">
<button type="submit" onclick="window.location='/admin/plugin/plugin.add<?php echo Main_Const::getSeriveUrlStr(); ?>'" class="controll-button" name="Submit" >Добавить</button>
</div>
<div style="text-align: right; margin-right: 12px;">
	<input type="text" class="simple-search" />
</div>

<div id="pager_plugin"></div>

